<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>主应用</h1>
    <script type="systemjs-importmap">
        {
            "imports": {
                "react": "https://cdn.bootcdn.net/ajax/libs/react/18.2.0/umd/react.development.js",
                "react-dom": "https://cdn.bootcdn.net/ajax/libs/react-dom/18.2.0/umd/react-dom.development.js"
            }
        }
    </script>
    <div id="root"></div>
    <script src="https://cdn.bootcdn.net/ajax/libs/systemjs/6.15.1/system.min.js"></script>
    <script>
        // 直接加载子应用
        System.import('../dist/index.js')
    </script>
</body>
</html>